package com.benz.order.util.multithread;

public class JoinThread implements Runnable{
    @Override
    public void run() {
        for(int i=0;i<6;i++){
            System.out.println(Thread.currentThread().getName()+"输出：------"+i);
            try {
                Thread.sleep(500);
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }
        }
    }
}
